package com.xyd.entity;

import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * 类描述：
 *
 * @author 张吉哲
 * @date 2021/1/9 14:10
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Product implements Serializable {

  /** 商品信息编号 */
  private Long epId;
  /** 商品名称 */
  private String epName;
  /** 商品描述 */
  private String epDescription;
  /** 商品价格 */
  private Double epPrice;
  /** 商品库存 */
  private Integer epStock;
  /** 分类id */
  private Long epcId;
  /** 二级分类id */
  private Long epcChildId;
  /** 文件名 */
  private String epFileName;
  /** 购物车中商品数量 */
  private Integer num;

  /** 商品所属分类信息 */
  private ProductCategory productCategory;

  public Product(Long epId, String epName, String epDescription, Double epPrice,
      Integer epStock, Long epcId) {
    this.epId = epId;
    this.epName = epName;
    this.epDescription = epDescription;
    this.epPrice = epPrice;
    this.epStock = epStock;
    this.epcId = epcId;
  }
}
